<div class="header">
    <back-Btn></back-Btn>
    考勤
    <div class="right-btn flex">
        <div ng-click="attendance.goAttendancelist()" ng-show="attendance.checkinfo.adMgr">管理</div>
        <div class="ml10" ng-click="attendance.goStatisticlist()">统计</div>

    </div>
</div>
<div class="container">
    <div class="attendance_date c1">
        <div class="weekday fs30">
            {{attendance.checkinfo.today|getDay}}
        </div>
        <div class="cur_date">
            {{attendance.checkinfo.today|dateFmt:"yyyy年MM月dd日"}}
        </div>
    </div>
    <div class="attendance_check" ng-show="attendance.checkinfo.hasAd">
        <div class="list">
            <div class="list-item list-item-logo icon_sun grid">
                <div class="list-item-content lh25 col-10-12 push-2-12 celled ">
                    <div class="grid">
                        <div class="col-3-4">
                            <div class="list-item-title fw" ng-class="{lh50:attendance.checkinfo.overTime==1}">{{attendance.checkinfo.overTime==0?"上班":"开始加班"}}</div>
                            <div class="list-item-tip fs12" ng-show="attendance.checkinfo.overTime==0" ng-class="{lh50:attendance.checkinfo.overTime!=0}">{{attendance.checkinfo.onDutyHour|timeFormat}}:{{attendance.checkinfo.onDutyMintue|timeFormat}}</div>
                        </div>
                        <div class="col-1-4 lh35 c1 tc mt5 fs14">
                            <div class="arrive_sign" ng-click="attendance.checksign(1)" ng-class="{signed:attendance.checkinfo.signType!=1}">{{attendance.checkinfo.signType==1?"签到":attendance.checkinfo.signInTime}}</div>
                        </div>
                    </div>
                    <div class="fs12 grid c9" ng-show="attendance.checkinfo.onDutyAddress">
                        <p class="col-3-4 signed icon_location te">{{attendance.checkinfo.onDutyAddress||"未知"}}</p>
                        <p class="col-1-4 tc" ng-switch="attendance.checkinfo.onDutySignType">
                            <span ng-switch-when="0">范围外</span>
                            <span ng-switch-when="1">正常</span>
                            <span ng-switch-when="2">迟到</span>
                            <span ng-switch-when="4">未签到</span>
                        </p>
                    </div>
                </div>
            </div>
            <div class="list-item list-item-logo icon_moon grid">
                <div class="list-item-content lh25 col-10-12 push-2-12 celled">
                    <div class="grid">
                        <div class="col-3-4">
                            <div class="list-item-title fw" ng-class="{lh50:attendance.checkinfo.overTime==1}">{{attendance.checkinfo.overTime==0?"下班":"结束加班"}}</div>
                            <div class="list-item-tip fs12" ng-show="attendance.checkinfo.overTime==0" ng-class="{lh50:attendance.checkinfo.overTime!=0}">{{attendance.checkinfo.offDutyHour|timeFormat}}:{{attendance.checkinfo.offDutyMintue|timeFormat}}</div>
                        </div>
                        <div class="col-1-4 lh35 c1 tc mt5 fs14">
                            <div class="leave_sign" ng-click="attendance.checksign(2)" ng-class="{signed:attendance.checkinfo.signType!=2}">{{attendance.checkinfo.signType==2?"签退":attendance.checkinfo.signOutTime}}</div>
                        </div>
                    </div>
                    <div class="fs12 grid c9" ng-show="attendance.checkinfo.offDutyAddress">
                        <p class="col-3-4 signed icon_location te">{{attendance.checkinfo.offDutyAddress||"未知"}}</p>
                        <p class="col-1-4 tc push-3-4" ng-switch="attendance.checkinfo.offDutySignType">
                            <span ng-switch-when="0">范围外</span>
                            <span ng-switch-when="1">正常</span>
                            <span ng-switch-when="3">早退</span>
                            <span ng-switch-when="4">未签退</span>
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="show_overtime tc mt30 pd20" ng-show="attendance.checkinfo.changeOt" ng-click="attendance.switchOvertime()">
        <div class="btn">切换到加班模式</div>
    </div>
    <div class="tc fs20 mt20" ng-hide="attendance.checkinfo.hasAd">
        您不需要考勤
    </div>
</div>